$border-style: 1px solid #ccc;
$search-height: 80px;
$body-height: 400px;
.goods-picker-title {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: $border-style;
}
.goods-picker-body {
  display: flex;
  position: relative;
  flex-direction: column;
  margin-bottom: 10px;
  min-height: $body-height;
  font-size: 12px;
  line-height: normal;
}
/deep/ {
  .el-dialog__body {
    padding: 0 20px;
  }
}
.upload-status-num {
  font-size: 14px;
  span {
    color: red;
    margin-right: 10px;
  }
}
.goods-picker-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: $border-style;
}

.goods-picker-search {
  position: relative;
  width: 100%;
  //height: $search-height;
  .item-search {
    & + .item-search {
      margin-top: 8px;
    }
    span { margin-right: 8px }
    /deep/ .el-cascader { width: 150px }
    /deep/ .inline-input {
      margin-left: 8px;
      width: 300px;
      display: inline-block;
      &.goods-ids {
        width: 623px;
        margin-left: 0;
        .el-input__inner {
          padding-right: 15px;
        }
        .el-input__suffix {
          display: none;
        }
      }
    }
  }
}

.goods-picker-content {
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
  height: $body-height - $search-height - 10px;
  margin-top: 10px;
}

.list, .selected-list {
  position: relative;
  width: 49%;
  height: 100%;
  padding: 10px 10px 0 10px;
  background-color: #fafafa;
  overflow-x: hidden;
  overflow-y: auto;
}

.goods-item {
  //display: flex;
  //float: left;
  //position: relative;
  //width: 49%;
  //height: 80px;
  //margin-bottom: 10px;
  //background-color: #fff;
  //&:nth-child(2n) {
  //  margin-left: 2%;
  //}
  display: flex;
  float: left;
  position: relative;
  width: 49%;
  height: 120px;
  margin-bottom: 10px;
  background-color: #fff;
  &:nth-child(2n) {
    margin-left: 2%;
  }
}
.goods-image {
  //width: 80px;
  //height: 80px;
  width: 60px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  img {
    width: 100%;
  }
}
.goods-other {
  width: calc(100% - 60px);
  padding: 5px;
}
.goods-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-all;
  overflow: hidden;
}
.goods-specs-name {
  color: #9cb945;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-all;
  overflow: hidden;
}

.goods-price {
  height: 30%;
  padding: 5px 0;
  color: #f42424;
}
.goods-item:hover:not(.slide-fade-move) .goods-mask { display: block }
.goods-item.selected {
  .icon-selected { display: block }
  .mask-check {
    background-color: #f23f40;
    i {
      background: url("") no-repeat center;
      background-size: 100%;
    }
  }
}
.icon-selected {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background: url("") no-repeat center #fff;
  background-size: 100%;
  z-index: 99;
}
.goods-mask {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  cursor: pointer;
  .mask-view, .mask-check {
    position: relative;
    float: left;
    height: 100%;
    background-color: rgba(204, 204, 204, 0.5);
    transition: all ease-out 0.3s;
    &:hover { background-color: #ccc }
    i {
      display: block;
      position: absolute;
      top: 50%;
      left: 50%;
      margin-top: -15px;
      margin-left: -15px;
      width: 30px;
      height: 30px;
      transition: all ease-out 0.3s;
    }
  }
  .mask-view {
    width: 40px;
    a {
      display: block;
    }
    i {
      background: url("") no-repeat center;
      background-size: 100%;
    }
  }
  .mask-check {
    width: calc(100% - 40px);
    i {
      background: url("") no-repeat center;
      background-size: 100%;
    }
  }
}

.load-more {
  width: 100%;
  margin-bottom: 10px;
}

/** 动画 */
.slide-fade-item, .slide-fade-enter-active, .slide-fade-leave-active {
  transition: all .5s ease;
}
.slide-fade-enter, .slide-fade-leave-to {
  transform: translateX(-30px);
  opacity: 0;
}
.slide-fade-leave-active {
  position: absolute;
}
.slide-fade-move {
  transition: transform .5s;
}
